using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmDeliveryNotePenalty")]
    public class DeliveryNotePenalty
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "DnPenId", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public int DnPenId { get; set; }

        [ForeignKey("DeliveryNote")]
		[DataMember, Display(Name = "DnId", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<int> DnId { get; set; }

        [ForeignKey("PurchaseOrderPenalty")]
		[DataMember, Display(Name = "PoPenId", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<int> PoPenId { get; set; }

		[DataMember, Display(Name = "DnPenRemark", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "PenaltyCalculate", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<int> PenaltyCalculate { get; set; }

		[DataMember, Display(Name = "PenaltyAmount", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<double> PenaltyAmount { get; set; }

		[DataMember, Display(Name = "PenaltyFinalAmount", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<double> PenaltyFinalAmount { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DeliveryNotePenaltyResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember]
        public virtual DeliveryNote DeliveryNote { get; set; }

        [DataMember]
        public virtual PurchaseOrderPenalty PurchaseOrderPenalty { get; set; }

    }
}